{template 'member', 'header'}
<link href="{CSS_PATH}member.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
{if isset($show_validator)}
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
{/if}

<div id="memberArea" class="realwrap clear">
	{template 'member', 'left'}
    <div class="col-auto" style="float:right;width:796px;">
        	<div class="col-1 member-info" style="background:#f1f5f8">
            	<div class="content">
                    <div class="col-left himg">
					<a title="{L('modify').L('avatar')}" href="index.php?m=member&c=index&a=account_manage_avatar&t=1"><img src="{$memberinfo[image]}" width="60" height="60" onerror="this.src='{$phpsso_api_url}/statics/images/member/nophoto.gif'"></a>
					</div>
                  <div class="col-auto">
                   	<h5>
							<span style="color:#0089e6;font-size:20px;">{$memberinfo['name']}</span>您好，欢迎回来！
						</h5>
                    <p class="blue">
						会员等级: {if $memberinfo['vip']}<span style="color:#f5a12d">黄金VIP会员</span>{else}<span style="color:green">普通会员</span>{/if}
                      {L('point')}：<font style="color:#F00; font-size:22px;font-family:Georgia,Arial; font-weight:700">{$memberinfo[point]}</font> {L('unit_point')}
						{if $memberinfo['vip']}，vip{L('overduedate')}：<font style="color:#F00; font-size:12px;font-family:Georgia,Arial; font-weight:700">{format::date($memberinfo['overduedate'])}</font>{/if}
                      </p>
                    </div>
           	  </div>

            	<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
            </div>

			<div class="bluebox"  style="margin-top:10px">
				<div class="boxcontent" style="padding:10px">
					<div class="orderinfo">
						<h3>订单信息</h3>
							<p class="zzz">您当前帐号内有:</p>
							<?
								$orderdb =  pc_base::load_model('order_model');
								$ordering = $orderdb->query('select count(*) from v9_order where order_status=0 and user_id='.$memberinfo['userid']);
								$ordering = mysql_fetch_array($ordering);
								$orderdone = $orderdb->query('select count(*) from v9_order where order_status=1 and user_id='.$memberinfo['userid']);
								$orderdone = mysql_fetch_array($orderdone);
							?>
							<ul class="orderhotel">
								<li><strong>进行中订单：</strong> {$ordering[0]}条</li>
								<li><strong>已完成订单：</strong> {$orderdone[0]}条</li>
							</ul>
					</div>
					<div class="orderinfo">
						<h3>积分账户</h3>
						<p class="zzz">可用积分：{$memberinfo[point]} {L('unit_point')}</p>
						<p class="zzz">更多积分换礼，尽在拉达高积分广场！</p>
					</div>
				</form>
				</div>
			</div>


    </div>
    <div class="clear"></div>
</div>
{template 'content', 'footer'}